import request from '@/utils/request'

// 查询非采购物料
export function listMaterial(query) {
  return request({
    url: '/rd/ebom/invList',
    method: 'get',
    params: query
  })
}

// 查询结构树
export function materialTree(query) {
  return request({
    url: '/rd/ebom/tree',
    method: 'get',
    params: query
  })
}

//字典
export function dictMatching (data) {
  return request({
    url: '/system/dict/data/type/'+ data,
    method: 'get',
  })
}

// 获取单据参数
export function billParameters(query) {
  return request({
    url: '/system/config/form',
    method: 'get',
    params: query
  })
}

 //查询物料分类
 export function invSort(query) {
  return request({
     url: '/inv/items/selectInvSort',
     method: 'get',
     params:query
   })
 }